package com.atguigu.yygh.cmn.client;


import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-cmn")
public interface DictFeignClient {

    //根据value 查询名称
    @GetMapping("/admin/cmn/dict/findNameByValue/{value}")
    public String findNameByValue(@PathVariable("value") Long value);

    //根据value 与code 查询名称
    @GetMapping("/admin/cmn/dict/getByValueAndCode/{value}/{code}")
    public String getByValueAndCode(@PathVariable ("value")Long value,
                                    @PathVariable ("code")String code);
}
